package com.hedl.mapper;

import com.hedl.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Select("select * from t_user")
    List<User> findAll();

    @Select("select * from t_user where id=#{id}")
    User selectById(@Param("id") Long id);
}
